package com.study.zzedu.ui.yidonginfo;

import android.content.Context;

import com.study.zzedu.base.BasePresenter;
import com.study.zzedu.base.BaseView;
import com.study.zzedu.http.OnResultListener;

public class YiDongInfoPresenter extends BasePresenter<BaseView> {

    private YiDongInfoModel yiDongInfoModel;
    public YiDongInfoPresenter(){
        this.yiDongInfoModel = new YiDongInfoModel();
    }

    public void getYiDongInfoList(Context context){
        yiDongInfoModel.getYiDongInfoList(context, new OnResultListener() {
            @Override
            public void onSuccess(String result) {
                getView().getData(result);
            }

            @Override
            public void onError(String error) {
                getView().showError(error);
            }
        });
    }
}
